import com.ruoyi.ruoyixingyue.modules.utils.videoUtil.VideoUtil;
import org.junit.Test;

import java.io.IOException;

/**
 * @Author 卢壮志
 * @Date 2024/2/26
 * @Time: 23:12
 */

public class test {

    @Test
    public void testDemo01() throws IOException {
        String path = "https://meinvjianhao.oss-cn-hangzhou.aliyuncs.com/meinvjianhao/2024/2/23/1708684353337.mp4" ;
        long result = VideoUtil.getMp4Duration(path);
        System.out.println(result);
    }
}
